package com.classic.download;

import java.util.Arrays;
import java.util.List;

public class AppUtils {
    public static APP getAppDetails(String name) {
        APP app = new APP();
        switch (name) {
            case "兜兜天气预报":
                app.setLogo("https://static-cdn.qimai.cn/pic/view/type/android/source/aHR0cDovL3BwLm15YXBwLmNvbS9tYV9pY29uLzAvaWNvbl81Mjc5MTk4Nl8xNTU2MzA5NjY4LzI1Ng==");
                app.setName("兜兜天气预报");
                app.setVersions("1.2.1");
                app.setPackageName("com.doudou.weather");
                app.setIntroduction("<div data-v-652d7acf=\"\" class=\"description\">采用权威数据源授权预报信息，可查看国内城市的实时天气预报、空气质量指数及生活出行指南，页面随天气变化而变化。<br>【产品特点】<br>数据全面：提供未来15日天气，风向，温度，空气质量预报，数据全面，可覆盖国多个城市和地区空气质量<br>空气质量：各地区PM2.5监测，天气监测站尽在掌握。<br>预警通知：采用气象部门授权的预警信息，异常天气及时提醒<br>天气指数：晴天雨天各项指数综合看，根据天气轻松安排户内外活动。<br>实况背景：阴晴雨雪沙尘暴的城市风景，匹配实时天气状况，给您更直观的天气呈现。</div>");
                app.setChannel(Arrays.asList(
                        new APP.Channel("baidu",
                                "http://shouji.baidu.com/software/25544009.html"),
                        new APP.Channel("yingyongbao",
                                "http://sj.qq.com/myapp/detail.htm?apkName=com.doudou.weather"),
                        new APP.Channel("qh360",
                                "http://zhushou.360.cn/detail/index/soft_id/4022640"),
                        new APP.Channel("wandoujia",
                                "http://www.wandoujia.com/apps/com.doudou.weather"),
                        new APP.Channel("huawei",
                                "http://appstore.huawei.com/app/C100520249"),
                        new APP.Channel("meizu",
                                "http://app.meizu.com/apps/public/detail?package_name=com.doudou.weather")));
                app.setPatternmaking(Arrays.asList("https://picservice-img.qimai.cn/ossget/http://i5.res.meizu.com/fileserver/app_ad_snap/webp/8291/b977a0a30ea143ffabe16010827d5c92.webp?x-oss-process=image/auto-orient,1/format,png",
                        "https://picservice-img.qimai.cn/ossget/http://i5.res.meizu.com/fileserver/app_ad_snap/webp/8291/5308d1ae3249407bbb5496859fd54b82.webp?x-oss-process=image/auto-orient,1/format,png",
                        "https://picservice-img.qimai.cn/ossget/http://i5.res.meizu.com/fileserver/app_ad_snap/webp/8291/5473b372745a436e8c1c3cbf5fb3e90e.webp?x-oss-process=image/auto-orient,1/format,png",
                        "https://picservice-img.qimai.cn/ossget/http://i5.res.meizu.com/fileserver/app_ad_snap/webp/8291/55e8b3b1c77f4a2caa81cd217129624e.webp?x-oss-process=image/auto-orient,1/format,png",
                        "https://picservice-img.qimai.cn/ossget/http://i5.res.meizu.com/fileserver/app_ad_snap/webp/8291/176b5cdc2e274caba86651f6c3c5bcb8.webp?x-oss-process=image/auto-orient,1/format,png"));

                return app;
            case "智能扫描王":
                //智能扫描王
                app.setName("智能扫描王");
                app.setPackageName("com.yanjiang.scanningking");
                app.setLogo("https://static-cdn.qimai.cn/pic/view/type/android/source/aHR0cDovL3BwLm15YXBwLmNvbS9tYV9pY29uLzAvaWNvbl81MjgzNTE5NF8xNTU2MDE3MTEyLzI1Ng==");
                app.setVersions("1.2.1");
                app.setIntroduction("<div data-v-652d7acf=\"\" class=\"description\">拍照识别：将带有文字的文稿通过OCR(Optical Character Recognition,光学字符识别)技术智能识别提取文稿中的文字<br>图片识别：从相册中选取带有文字的文稿提取文稿中的文字<br>身份证识别：将身份证放入摄像头之下即可提取身份证信息<br>文字复制：一键复制识别后的文字，也可自由复制识别后的文字粘贴至所需之地</div>");
                app.setPatternmaking(Arrays.asList("https://picservice.qimai.cn/get/http://cdn00.baidu-img.cn/timg?vsapp&size=b240_360&imgtype=3&quality=80&er&sec=0&di=8ba15d3ccd8b71e902cac2bda09678a3&src=http%3A%2F%2Fgdown.baidu.com%2Fimg%2F0%2F720_1280%2F4c4e8b7c8ecac42b359b36fec1250276.png",
                        "https://picservice.qimai.cn/get/http://cdn00.baidu-img.cn/timg?vsapp&size=b240_360&imgtype=3&quality=80&er&sec=0&di=b0e12866e3ce265fb402981dcdabf00f&src=http%3A%2F%2Fgdown.baidu.com%2Fimg%2F0%2F720_1280%2F845e32b6a8cef00998f98402237217f7.png",
                        "https://picservice.qimai.cn/get/http://cdn00.baidu-img.cn/timg?vsapp&size=b240_360&imgtype=3&quality=80&er&sec=0&di=93b647a2a6ba57d3d39998d674791baf&src=http%3A%2F%2Fgdown.baidu.com%2Fimg%2F0%2F720_1280%2F2b2af596ee51b10fab4bd270a3110d9b.png",
                        "https://picservice.qimai.cn/get/http://cdn00.baidu-img.cn/timg?vsapp&size=b240_360&imgtype=3&quality=80&er&sec=0&di=6a100ffc4f826e2e41507d6afd2d5b0d&src=http%3A%2F%2Fgdown.baidu.com%2Fimg%2F0%2F720_1280%2F8af4c9aab5472ac8e77ba689930d2561.png",
                        "https://picservice.qimai.cn/get/http://cdn00.baidu-img.cn/timg?vsapp&size=b240_360&imgtype=3&quality=80&er&sec=0&di=014e42be6e30eda6d87336ab09c76bc5&src=http%3A%2F%2Fgdown.baidu.com%2Fimg%2F0%2F720_1280%2F6af15fa6508dccc096cc40937c21685d.png"));
                app.setChannel(
                        Arrays.asList(new APP.Channel("baidu", "http://shouji.baidu.com/software/25698360.html"),
                                new APP.Channel("yingyongbao", "http://sj.qq.com/myapp/detail.htm?apkName=com.yanjiang.scanningking"),
                                new APP.Channel("qh360", "http://zhushou.360.cn/detail/index/soft_id/4027566"),
                                new APP.Channel("xiaomi", "http://app.xiaomi.com/detail/772687"),
                                new APP.Channel("wandoujia", "http://www.wandoujia.com/apps/com.yanjiang.scanningking"),
                                new APP.Channel("huawei", "http://appstore.huawei.com/app/C100646461"),
                                new APP.Channel("vivo", "http://info.appstore.vivo.com.cn/detail/2427720"),
                                new APP.Channel("oppo", "")));
                return app;
            case "遥控助手":
                //遥控助手
                app.setName("遥控助手");
                app.setLogo("https://static-cdn.qimai.cn/pic/view/type/android/source/aHR0cDovL3BwLm15YXBwLmNvbS9tYV9pY29uLzAvaWNvbl81Mjg1MDI0Nl8xNTU2MTE0NjM5LzI1Ng==");
                app.setVersions("1.1.0");
                app.setPackageName("com.yanjiang.remotecontrol");
                app.setIntroduction("<p class=\"content content_hover\">遥控助手可将您的手机变换成各种电器遥控器，内置海量数码遥控库，收录众多遥控器，涵盖全球主流家电品牌遥控助手已适配三星，小米，华为，OPPO，联想，VIVO，魅族等品牌旗下红外机型1.完美遥控电视机，机顶盒，空调，电风扇，DVD等家电。2.用户能够自由选择添加各种遥控器品牌。3.空调遥控界面支持控制空调开关，温度，模式，风速和风向等功能。4.用户能够保存添加过...<span class=\"occupied\"></span></p>");
                app.setPatternmaking(Arrays.asList("http://gdown.baidu.com/img/0/720_1280/f2a0f902aea869378156942de9013361.png",
                        "http://gdown.baidu.com/img/0/720_1280/feb861c4849288388157245cccfaf77b.png",
                        "http://gdown.baidu.com/img/0/720_1280/876fba1b7d3e8e761eeea9f6a033c719.png",
                        "http://gdown.baidu.com/img/0/720_1280/e10c236fcfd6dbf29e30355c2c32d75a.png"));
                app.setChannel(Arrays.asList(
                        new APP.Channel("baidu", "http://shouji.baidu.com/software/25850111.html"),
                        new APP.Channel("yingyongbao", "http://sj.qq.com/myapp/detail.htm?apkName=com.yanjiang.remotecontrol"),
                        new APP.Channel("xiaomi", "http://app.xiaomi.com/detail/778463"),
                        new APP.Channel("huawei", "http://appstore.huawei.com/app/C100668211"),
                        new APP.Channel("vivo", "http://info.appstore.vivo.com.cn/detail/2434694")
                ));
                return app;
            case "智能文件管家":
                app.setLogo("https://static-cdn.qimai.cn/pic/view/type/android/source/aHR0cDovL3BwLm15YXBwLmNvbS9tYV9pY29uLzAvaWNvbl81Mjc5MzQwNl8xNTU1ODA2NTE2LzI1Ng==");
                app.setName("智能文件管家");
                app.setVersions("1.0.1");
                app.setPackageName("com.yanjiang.folder");
                app.setIntroduction("<p class=\"content content_hover content-unfold\">【官方文件管家】强大，简约，易用并且免费的文件管家<br>【特色功能】<br>1、支持文件的常用操作：搜索、复制、剪切、删除、重命名、查看详情、排序等操作；<br>2、清理手机垃圾，一键清理手机中空文件夹，同时还可清理空白文件<br>3、按类别轻松浏览文件，直接从文件管理器主页，快速查看图片，视频，音乐，应用程序等。<br>4、手机加速，远离缓慢，智能内存清理算法，快速释放手机内存。<br>5、软件管理更便捷，一键勾选无用软件，清理软件更方便<br>6、应用程序管理器：快速列出所有已安装的应用程序，允许用户卸载。<span class=\"occupied\"></span></p>");
                app.setPatternmaking(Arrays.asList(
                        "http://gdown.baidu.com/img/0/720_1280/1a89916c906df927cfad699d0c126cbc.png",
                        "http://gdown.baidu.com/img/0/720_1280/5810bce90080587c204f7a4b7092d39e.png",
                        "http://gdown.baidu.com/img/0/720_1280/3a28b50cde926c85df2579cb5cd73808.png",
                        "http://gdown.baidu.com/img/0/720_1280/666b5054553966290f1234401d89fb5f.png",
                        "http://gdown.baidu.com/img/0/720_1280/80d2a0eb2d31074e81708fd0f04f7682.png"));
                app.setChannel(Arrays.asList(
                        new APP.Channel("baidu", "http://shouji.baidu.com/software/25387494.html"),
                        new APP.Channel("yingyongbao", "http://sj.qq.com/myapp/detail.htm?apkName=com.yanjiang.folder"),
                        new APP.Channel("xiaomi", "http://app.xiaomi.com/detail/744603"),
                        new APP.Channel("wandoujia", "http://www.wandoujia.com/apps/com.yanjiang.folder"),
                        new APP.Channel("huawei", "http://appstore.huawei.com/app/C100530935")
                ));

                return app;
            case "官宣二维码":
                app.setLogo("https://static-cdn.qimai.cn/pic/view/type/android/source/aHR0cDovL3BwLm15YXBwLmNvbS9tYV9pY29uLzAvaWNvbl81MjgwNDk1MV8xNTU2MTA0MDAyLzI1Ng==");
                app.setName("官宣二维码");
                app.setVersions("1.2.1");
                app.setPackageName("com.yanjiang.qrcode");
                app.setIntroduction("<p class=\"content content_hover\">【官宣二维码】扫码速度更快、更准、更全的扫码神器，官宣二维码做您最佳小助理【二维码】1、智能扫描，获取码上惊喜，一键跳转相应链接地址2、条形码，二维码一键生成，制作属于自己二维码【文本识别】1、拍照带文字的实物通过OCR技术智能识别提取其中文字2、高效率提取图文字 ，解析信息 【快递查询】1、集成EMS,申通,圆通,韵达,中通等常见物...<span class=\"occupied\"></span></p>");
                app.setChannel(Arrays.asList(
                        new APP.Channel("baidu", "http://shouji.baidu.com/software/25543491.html"),
                        new APP.Channel("yingyongbao", "http://sj.qq.com/myapp/detail.htm?apkName=com.yanjiang.qrcode"),
                        new APP.Channel("xiaomi", "http://app.xiaomi.com/detail/741551"),
                        new APP.Channel("wandoujia", "http://www.wandoujia.com/apps/com.yanjiang.qrcode"),
                        new APP.Channel("huawei", "http://appstore.huawei.com/app/C100566349")
                ));
                app.setPatternmaking(Arrays.asList(
                        "http://gdown.baidu.com/img/0/720_1280/7b0c97685e133e0ab49690989c4b0368.png",
                        "http://gdown.baidu.com/img/0/720_1280/a4284068c5704c029e4ba551f6a65d8d.png",
                        "http://gdown.baidu.com/img/0/720_1280/d046ba8d13984c9ca59d7f347def5e2c.png",
                        "http://gdown.baidu.com/img/0/720_1280/6922c832f7c218fc9934a5abf02f7da3.png",
                        "http://gdown.baidu.com/img/0/720_1280/40f04d6f68364f3e47629abbbe58245d.png"
                ));
                return app;
            case "官宣手电筒":
                app.setLogo("https://static-cdn.qimai.cn/pic/view/type/android/source/aHR0cDovL3BwLm15YXBwLmNvbS9tYV9pY29uLzAvaWNvbl81MjgwNTc1NF8xNTU1Nzg2NzA0LzI1Ng==");
                app.setName("官宣手电筒");
                app.setPackageName("com.weifeng.flashlight");
                app.setVersions("1.1.1");
                app.setIntroduction("<p class=\"content content_hover\">手电筒首选官宣手电-手电筒专业的手电，专业的手电APP1、智能照明、智能省电，手电亮度更高！2、炫彩屏幕灯，演唱会、KTV等场合营造派对狂欢气氛必备手电、手电筒！3、专业品质，手电、手电筒照亮你的生活，居家旅行出门在外必备手电、手电筒。4、官宣手电兼容全网机型，支持任何安卓版本！5、夜晚回家官宣手电陪伴你，黑夜最佳伴侣。6、夜拍照明达人，让你夜晚拍摄...<span class=\"occupied\"></span></p>");
                app.setChannel(
                        Arrays.asList(
                                new APP.Channel("baidu", "http://shouji.baidu.com/software/25537527.html"),
                                new APP.Channel("yingyongbao", "http://sj.qq.com/myapp/detail.htm?apkName=com.weifeng.flashlight"),
                                new APP.Channel("xiaomi", "http://app.xiaomi.com/detail/749902"),
                                new APP.Channel("wandoujia", "http://www.wandoujia.com/apps/com.weifeng.flashlight"),
                                new APP.Channel("vivo", "http://info.appstore.vivo.com.cn/detail/2411823")
                        )
                );
                app.setPatternmaking(Arrays.asList(
                        "http://gdown.baidu.com/img/0/480_800/9af1e2e45c315dc9c8971b903c1c5edd.png",
                        "http://gdown.baidu.com/img/0/480_800/abfa18d9400282da2c5780fe27f768b5.png",
                        "http://gdown.baidu.com/img/0/480_800/b513781db258a4609b7d9150824ec33a.png",
                        "http://gdown.baidu.com/img/0/480_800/9a9aa4b03c555b45058b2656d0265355.png",
                        "http://gdown.baidu.com/img/0/480_800/d57bd6c0df77f240f3acb648cb77692f.png"
                ));
                return app;
            case "智慧浏览器":

                app.setLogo("https://static-cdn.qimai.cn/pic/view/type/android/source/aHR0cDovL3AzLnFoaW1nLmNvbS90MDExMGZlYTNmMTQyNzRlYmFiLndlYnA=");
                app.setName("智慧浏览器");
                app.setVersions("1.2.1");
                app.setPackageName("com.yanjiang.witibrowser");
                app.setIntroduction("<p class=\"content content_hover content-unfold\">【智慧浏览器】新颖设计方式，只为给您一个不一样的浏览器<br>【特色功能】<br>1、极简理念：设计风格精简，功能且不精简，给追求洁癖的你。<br>2、广告拦截：一键开关广告，过滤网页恶意网站，给你一片清净。<br>3、安全上网：保障数据安全，京东淘宝天猫无忧购物<br>4、新闻资讯：新闻快人一步，网易头条搜狐一应俱全<br>5、书签管理：书签界面中用户可以查看历史记录及用户添加的书签<br>6、多窗口管理：点击页面“多窗口切换”按钮，可以对多个页面进行切换管理<span class=\"occupied\"></span></p>");
                app.setChannel(Arrays.asList(
                        new APP.Channel("baidu", "http://shouji.baidu.com/game/25704527.html"),
                        new APP.Channel("qh360", "http://zhushou.360.cn/detail/index/soft_id/4027571"),
                        new APP.Channel("xiaomi", "http://app.xiaomi.com/detail/740476"),
                        new APP.Channel("wandoujia", "http://www.wandoujia.com/apps/com.yanjiang.witibrowser"),
                        new APP.Channel("huawei", "http://appstore.huawei.com/app/C100551105"),
                        new APP.Channel("vivo", "http://info.appstore.vivo.com.cn/detail/2405037")
                ));
                app.setPatternmaking(Arrays.asList(
                        "http://gdown.baidu.com/img/0/720_1280/7d830135a014338a021ae83676f8dccc.png",
                        "http://gdown.baidu.com/img/0/720_1280/987c3f5c9896982815ec7c198f60f858.png",
                        "http://gdown.baidu.com/img/0/720_1280/30ae33dffdf2e2b4930fb0ea7b9ae3a4.png",
                        "http://gdown.baidu.com/img/0/720_1280/ac5f94ce091bdb4d741dc63446a469ad.png",
                        "http://gdown.baidu.com/img/0/720_1280/0e9d6ea5d0983cc6f386ef803b32da6b.png"));
                return app;

            default:
                return null;
        }
    }

    public static List<APP> getAppList() {
        return Arrays.asList(
                new APP("兜兜天气预报",
                        "https://static-cdn.qimai.cn/pic/view/type/android/source/aHR0cDovL3BwLm15YXBwLmNvbS9tYV9pY29uLzAvaWNvbl81Mjc5MTk4Nl8xNTU2MzA5NjY4LzI1Ng==",
                        "1.2.1"),
                new APP("智能扫描王",
                        "https://static-cdn.qimai.cn/pic/view/type/android/source/aHR0cDovL3BwLm15YXBwLmNvbS9tYV9pY29uLzAvaWNvbl81MjgzNTE5NF8xNTU2MDE3MTEyLzI1Ng==",
                        "1.2.1"),
                new APP("遥控助手",
                        "https://static-cdn.qimai.cn/pic/view/type/android/source/aHR0cDovL3BwLm15YXBwLmNvbS9tYV9pY29uLzAvaWNvbl81Mjg1MDI0Nl8xNTU2MTE0NjM5LzI1Ng==",
                        "1.1.0"),
                new APP("智能文件管家",
                        "https://static-cdn.qimai.cn/pic/view/type/android/source/aHR0cDovL3BwLm15YXBwLmNvbS9tYV9pY29uLzAvaWNvbl81Mjc5MzQwNl8xNTU1ODA2NTE2LzI1Ng==",
                        "1.0.1"),

                new APP("官宣二维码",
                        "https://static-cdn.qimai.cn/pic/view/type/android/source/aHR0cDovL3BwLm15YXBwLmNvbS9tYV9pY29uLzAvaWNvbl81MjgwNDk1MV8xNTU2MTA0MDAyLzI1Ng==",
                        "1.2.1"),

                new APP("官宣手电筒",
                        "https://static-cdn.qimai.cn/pic/view/type/android/source/aHR0cDovL3BwLm15YXBwLmNvbS9tYV9pY29uLzAvaWNvbl81MjgwNTc1NF8xNTU1Nzg2NzA0LzI1Ng==",
                        "1.1.1"),

                new APP("智慧浏览器",
                        "https://static-cdn.qimai.cn/pic/view/type/android/source/aHR0cDovL3AzLnFoaW1nLmNvbS90MDExMGZlYTNmMTQyNzRlYmFiLndlYnA=",
                        "1.2.1")
        );
    }
}
